<?php


namespace app\common\validate;


use think\Validate;

class Project extends Validate
{
    protected $rule = [
        'pname' => 'require|unique:project',
        'ptype'=> 'require',

    ];

    protected $message = [
        'pname.require' => '项目名称必须',
        'pname.unique' => '项目名称已存在',
        'ptype.require'=>'项目类型必须',
    ];
}